package com.liuyucheng.designpattern.策略模式.strategy;

import java.math.BigDecimal;

public class NewCustomerStrategy implements Strategy {
    @Override
    public BigDecimal getPrice(BigDecimal standardPrice) {
        System.out.println("新用户打五折");
        return standardPrice.multiply(new BigDecimal("0.5"));
    }
}
